package com.sx.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sx.bean.Node;
import com.sx.bean.Role;





public interface RoleDao {
	
	public List<Node>  getByParentId(String parentId);

	public List<Role> selectAll();
	
	public int getCount();
	
	public List<Role> getRoles(@Param("start")int start, @Param("pageSize")int pageSize);

	public Role selectRoleByUUid(String role_uuid);

	public void updateRoleByUUid(@Param("role_uuid") String role_uuid, @Param("role_id") String role_id,
			@Param("role_name") String role_name);

	public void insertRole(@Param("role_uuid") String role_uuid, @Param("role_id") String role_id,
			@Param("role_name") String role_name);
	
	public void deleteRoleByUUid(String role_uuid);
	
	public String[] selectResByUUid(String role_uuid);
	
	public void insertRoleRes(@Param("role_uuid") String role_uuid, @Param("res_uuid") String res_uuid);

}
